package com.wang.config;

import org.apache.dubbo.common.extension.Activate;
import org.apache.dubbo.rpc.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


@Activate(group = {"provider","consumer"},order = 2)
public class DubboLogsFilter implements Filter {

    Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException {
        logger.info("DubboLogsFilter invoker =======================");
        return invoker.invoke(invocation);
    }
}
